package com.lumlord.common.domain;

import com.lumlord.common.annotation.pojo.IgnoreColumn;
import com.lumlord.common.annotation.pojo.PK;
import com.lumlord.common.annotation.pojo.Table;
import com.lumlord.common.base.BaseEntity;
import java.io.Serializable;
import java.lang.Integer;
import java.util.List;

/**
 * 角色管理表 Role
 * 
 * @author gpf_自动生成
 * @email guopengfei@lumlord.com
 * @date 2020-04-19 19:40:10
 */
@Table(value = "t_role")
public class UserRole extends BaseEntity implements Serializable {

	private static final long serialVersionUID = 1L;

	/** 主键ID，自增 **/
	@PK("id")
	private Integer id;

	/** 角色名称 **/
	private String roleName;

	/** 状态（1有效，0无效） **/
	private Integer status;

	/** 角色描述 **/
	private String description;

	/** 图标 **/
	private String icon;
	
	/*** 屬性映射  用戶名**/
	@IgnoreColumn
	private String userName;
	/**
	 * 角色类型 1系统角色 2 自定义角色
	 */
	private Integer roleType;

	/*** 屬性映射  權限集合**/
	@IgnoreColumn
	private List<LumlordApi> apis;
	
	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}


	public List<LumlordApi> getApis() {
		return apis;
	}

	public Integer getRoleType() {
		return roleType;
	}

	public void setRoleType(Integer roleType) {
		this.roleType = roleType;
	}

	public void setApis(List<LumlordApi> apis) {
		this.apis = apis;
	}

	public UserRole() {
		super();
	}

}